﻿using System;
using System.Drawing;
using System.Xml.Serialization;
using CloudShot.Utils;

namespace CloudShot
{
	[Serializable]
	public class ShotInfo
	{
		public string Name { get; private set; }
		public Uri Url { get; private set; }
		public string Path { get; private set; }
		
		[NonSerialized]private Image _image;
		[XmlIgnore]public Image Image
		{
			get { return _image; }
			private set { _image = value; }
		}

		public Image Thumbnail { get; private set; }

		public ShotInfo(string name, Uri url, string path, Image image)
		{
			Name = name;
			Url = url;
			Path = path;
			Image = image;
			Thumbnail = ImgResizer.FixedSize(image, 24, 24);
		}
	}
}
